package com.example.gateway.designPattern.singleton;

/**
 * @ClassName: EHan
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/30
 */

public class EHan {


    private EHan() {}

    //缺点：浪费内存，类加载时就初始化
    private static EHan instance = new EHan();
    public static EHan getInstance() {
        return instance;
    }
}
